porting guide: Update to mention GDK_KEY_ transition
authorColin Walters <walters@verbum.org>
Wed, 8 Sep 2010 22:25:52 +0000 (18:25 -0400)
committerColin Walters <walters@verbum.org>
Wed, 8 Sep 2010 22:51:44 +0000 (18:51 -0400)
docs/reference/gtk/migrating-2to3.xml

index b966a8e8068594259fa759132b95bdc3ec8aa6fb..1d003e23460c73a23430fb92f468bad32a274e3a 100644 (file)
   </para>
   </section>
 
+  <section>
+    <title>Replace GDK_&lt;keyname&gt; with GDK_KEY_&lt;keyname&gt;</title>
+
+    <para>
+      Key constants have gained a <literal>_KEY</literal>, prefix.
+      For example, <literal>GDK_a</literal> is now
+      <literal>GDK_KEY_a</literal>.  In GTK+ 2, the old names continue
+      to be available.  In GTK+ 3 however, the old names will require
+      an explicit include of the
+      <literal>gdkkeysyms-compat.h</literal> header.
+    </para>
+
+  </section>
+
   <section>
     <title>Use cairo for drawing</title>
     <para>